home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / June 96 / ODF Popups < prev    next >
Encoding:
Internet Message Format  |  1996-12-03  |  1.8 KB  |  [TEXT/ttxt]

  1. Subject:     ODF Popups
  2. Sent:        6/12/96 8:35 AM
  3. Received:    6/12/96 9:11 AM
  4. From:        Henri Lamiraux, lamiraux@apple.com
  5. Reply-To:    ODF Interest, ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8. I am resending this message. It came back to me with an error.
  9.  
  10.  
  11. ------------------------------------------------------------------
  12.  
  13. Hi,
  14. I've got two questions regarding popups in ODF 1.
  15.  
  16. 1)
  17. My resource looks like this:
  18.  
  19. FW_RPopupMenu
  20. (
  21.   krInitialFont, // identifier
  22.   { FW_FIX()...FW_FIX() }, // coordinates
  23.   FW_kFixedBounds,
  24.   FW_kPopupClickedMsg,
  25.   FW_kFrameReceiver,
  26.   0,
  27.   krInitialMenu, // resource id
  28.   0,
  29.   1,
  30.   4, // popupUseAddResMenu
  31.   'FONT',
  32.   GENEVA9, // font
  33.   ""
  34. )
  35.  
  36. I want my popup to show all FONT's in my system. According to the 
  37. comments in
  38. the ODF files and from what I know from Inside Macintosh this should 
  39. work. But
  40. it doesn't. With this resource there is no popup at all in my view. When I
  41. replace 4 and 'FONT' with 0 and 0 everything works ok. Where am I missing 
  42. the
  43. point? Are there any good ODF-samples on how to do this? I know they 
  44. exist in
  45. the OpenDoc samples, but I want to do it the ODF-way.
  46.  
  47. 2)
  48. For the menubar I can use a new resourcetype in an .fr file. Can we 
  49. expect the
  50. same solution for popup menu's? Now we have to use 'MENU' resources and 
  51. that
  52. seems to strictly Mac to me.
  53.  
  54. Thanks.
  55.  
  56. Leo Hagebeek
  57. AS-PLUS B.V.
  58. Naarden, The Netherlands
  59. E-mail: as-plus@abecon.nl -or- development@abecon.nl
  60. AppleLink: AS.PLUS
  61.  
  62.  
  63. ........................................................................
  64.  Henri Lamiraux                                      lamiraux@apple.com
  65.  Apple Computer, Inc.                 OpenDoc(tm) Development Framework
  66. ........................................................................
  67.  
  68.